import storage from '@/utils/storage'

const app = {
  state: {
    // 当前终端平台
    platform: '',
	isRefresh:false
  },

  mutations: {
    SET_PLATFORM: (state, value) => {
      state.platform = value
    },
	SET_IS_REFRESH: (state, value) => {
	  state.isRefresh = value
	}
  },

  actions: {
    // 刷新列表
    SetIsRefresh({ commit }, value) {
      return new Promise((resolve, reject) => {
        commit('SET_IS_REFRESH', value)
        resolve()
      })
    }
  }
}

export default app